<?php
require './Home/Model/Model.php';
	class IndexModel extends Model{
		function __Construct(){
			parent::__Construct();
		}
		function getType(){
			$sql='select * from videotype';
			$data=$this->conn->query($sql);
			return $data;
		}
		function showVideo(){
			$sql='select a.tid,a.vid,a.videoname,a.pic,b.typename from vv a,videotype b where a.tid=b.tid ';
			//echo $sql;
			$data=$this->conn->query($sql);
			//var_dump($data);
			return $data;
		}
		
	}
?>